package com.gxa.employment.entity.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description:
 * @Author: 肖栋睿
 * @DateTime: 2025/3/19 18:57
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "登录参数实体")
public class LoginDto {
    @Schema(description = "手机号",example = "13333333333")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号格式错误")
    private String phone;
    @Schema(description = "密码",example = "123456")
    @NotBlank(message = "密码不能为空")
    private String pwd;
}